package com.cn.qtms.mq;//类注释设置模板

import com.cn.qtms.vo.SecKillVo;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.io.IOException;

/**
 * @Name:OrderListener
 * @Description:
 * @Author: zhangyang
 * @Date: 2019-12-31 15:59
 **/
@Component
public class OrderListener {

    @RabbitListener(queues="delay_queue")
    public void consumerMessage(SecKillVo vo) throws IOException{
        //执行业务逻辑
        System.out.println("listener="+vo.toString());
    }

}
